package com.itheima.demo11_抽象类注意事项;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.method();
    }
}
abstract class Fu{
    public Fu(){
        System.out.println("Fu 无参构造");
    }
    public abstract void method();
}
class Zi extends Fu{
    public Zi() {
        System.out.println("Zi 无参构造");
    }

    @Override
    public void method() {
        System.out.println("重写方法");
    }
}
abstract class Zi2 extends Fu{}